<template>
	<view class="content">
		<view class="title">
			{{title}}
		</view>
		<view class="art-content">
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad:function(e){
			console.log(e);
			uni.request({
				url: 'https://unidemo.dcloud.net.cn/api/news/36kr/'+e.newsid,
				method: 'GET',
				data: {},
				success: res => {
					console.log(res);
					this.title=res.data.title;
					this.content=res.data.content;
				},
				fail: () => {},
				complete: () => {}
			});
		},
		data() {
			return {
				title:'',
				content:''
			}
		},
		methods: {
			
		}
	}
</script>

<style>
.content{
	padding:10upx 2%;width: 96%;flex-wrap: wrap;
}
.title{line-height: 2em;font-weight: 700;font-size: 38upx;}
</style>
